﻿<Window x:Class="EventLogAnalyzer.View.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:View="clr-namespace:EventLogAnalyzer.View" Title="Event Log Analyzer" Height="900">
    <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  Margin="10,10,10,10">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="50" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" VerticalAlignment="Stretch">
                <Label Content="Event Logs file\folder path" Height="30" HorizontalAlignment="Left" Margin="12,15,0,0" FontWeight="Bold" FontFamily="Century Gothic" FontSize="14" Name="label1" VerticalAlignment="Top" />
                <TextBox Height="27" Text="{Binding Path=EventLogsFolderPath, Mode=TwoWay, UpdateSourceTrigger=Default}" HorizontalAlignment="Stretch" Margin="206,14,152,0" FontFamily="Century Gothic" FontSize="15"  Name="filePath" VerticalAlignment="Top" />
                <Button x:Name="analyzeButton" Content="Analyse" Command="{Binding Path=ParseEventLogsCommand}" Height="32" HorizontalAlignment="Right" Margin="1006,11,10,0" VerticalAlignment="Top" Width="87" Background="Black" Foreground="White" FontFamily="Century Gothic" FontSize="14" IsEnabled="{Binding Path=IsAnalyseButtonEnabled}"/>
                <Button x:Name="browseFile" FontFamily="Century Gothic" FontSize="14" Height="32" HorizontalAlignment="Right" IsEnabled="{Binding Path=IsAnalyseButtonEnabled}" Margin="0,11,112,0" VerticalAlignment="Top" Width="34" Click="browseFile_Click" Foreground="{x:Null}">
                    <Button.Background>
                        <ImageBrush ImageSource="/EventLogAnalyzer;component/View/Image/OpenFile.png" Stretch="Uniform" TileMode="None" />
                    </Button.Background>
                </Button>
            </Grid>
            <Grid Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,10,10,10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="430"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
<!--                <View:CommonEventsControl DataContext="{Binding Path=CommonEventsViewModel}" Margin="10,0,0,0"/>-->
                <View:LogDistributionListControl Grid.Row="0" DataContext="{Binding Path=LogDistributionList}" VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="10,10,0,10"/>
                <Grid Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="500" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <View:EventLogFilesListControl Grid.Column="0"  DataContext="{Binding Path=LogFilesViewModel}" Margin="10,0,30,30" VerticalAlignment="Stretch"/>
                    <View:EventDetailsControl DataContext="{Binding Path=SelectedEventDetails}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,22,-15,30" Grid.Column="1" >
                        <View:EventDetailsControl.Effect>
                            <DropShadowEffect Direction="230"/>
                        </View:EventDetailsControl.Effect>
                    </View:EventDetailsControl>
                    <TextBlock Text="Design inspired by PowerWall" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</Window>
